package com.sasis.model;
// Generated 2007-4-24 16:31:49 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="PLANE_INFO"
 *     
 */

public class PlaneInfo extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private String planeNo;
    private Date flyDate;
    private String flyLine;
    private String oriArea;
    private String destArea;
    private String flyTimePlan;
    private String flyTimeExpect;
    private String flyTimeFact;
    private Integer flyState;
    private String memo;
    private String tdestArea;
    private String toriArea;
    private String codeAddName;

    // Constructors

    public String getCodeAddName() {
		return codeAddName;
	}


	public void setCodeAddName(String codeAddName) {
		this.codeAddName = codeAddName;
	}


	/** default constructor */
    public PlaneInfo() {
    }

    
    /** full constructor */
    public PlaneInfo(String planeNo, Date flyDate, String flyLine, String oriArea, String destArea, String flyTimePlan, String flyTimeExpect, String flyTimeFact, Integer flyState, String memo,String tdestArea,String toriArea) {
        this.planeNo = planeNo;
        this.flyDate = flyDate;
        this.flyLine = flyLine;
        this.oriArea = oriArea;
        this.destArea = destArea;
        this.flyTimePlan = flyTimePlan;
        this.flyTimeExpect = flyTimeExpect;
        this.flyTimeFact = flyTimeFact;
        this.flyState = flyState;
        this.memo = memo;
        this.tdestArea=tdestArea;
        this.toriArea=toriArea;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="PLANE_NO"
     *             length="8"
     *         
     */

    public String getPlaneNo() {
        return this.planeNo;
    }
    
    public void setPlaneNo(String planeNo) {
        this.planeNo = planeNo;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLY_DATE"
     *             length="7"
     *         
     */

    public Date getFlyDate() {
        return this.flyDate;
    }
    
    public void setFlyDate(Date flyDate) {
        this.flyDate = flyDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLY_LINE"
     *             length="10"
     *         
     */

    public String getFlyLine() {
        return this.flyLine;
    }
    
    public void setFlyLine(String flyLine) {
        this.flyLine = flyLine;
    }
    /**       
     *      *            @hibernate.property
     *             column="ORI_AREA"
     *             length="5"
     *         
     */

    public String getOriArea() {
        return this.oriArea;
    }
    
    public void setOriArea(String oriArea) {
        this.oriArea = oriArea;
    }
    /**       
     *      *            @hibernate.property
     *             column="DEST_AREA"
     *             length="5"
     *         
     */

    public String getDestArea() {
        return this.destArea;
    }
    
    public void setDestArea(String destArea) {
        this.destArea = destArea;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLY_TIME_PLAN"
     *             length="10"
     *         
     */

    public String getFlyTimePlan() {
        return this.flyTimePlan;
    }
    
    public void setFlyTimePlan(String flyTimePlan) {
        this.flyTimePlan = flyTimePlan;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLY_TIME_EXPECT"
     *             length="10"
     *         
     */

    public String getFlyTimeExpect() {
        return this.flyTimeExpect;
    }
    
    public void setFlyTimeExpect(String flyTimeExpect) {
        this.flyTimeExpect = flyTimeExpect;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLY_TIME_FACT"
     *             length="10"
     *         
     */

    public String getFlyTimeFact() {
        return this.flyTimeFact;
    }
    
    public void setFlyTimeFact(String flyTimeFact) {
        this.flyTimeFact = flyTimeFact;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLY_STATE"
     *             length="22"
     *         
     */

    public Integer getFlyState() {
        return this.flyState;
    }
    
    public void setFlyState(Integer flyState) {
        this.flyState = flyState;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="200"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("planeNo").append("='").append(getPlaneNo()).append("' ");			
      buffer.append("flyDate").append("='").append(getFlyDate()).append("' ");			
      buffer.append("flyLine").append("='").append(getFlyLine()).append("' ");			
      buffer.append("oriArea").append("='").append(getOriArea()).append("' ");			
      buffer.append("destArea").append("='").append(getDestArea()).append("' ");			
      buffer.append("flyTimePlan").append("='").append(getFlyTimePlan()).append("' ");			
      buffer.append("flyTimeExpect").append("='").append(getFlyTimeExpect()).append("' ");			
      buffer.append("flyTimeFact").append("='").append(getFlyTimeFact()).append("' ");			
      buffer.append("flyState").append("='").append(getFlyState()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof PlaneInfo) ) return false;
		 PlaneInfo castOther = ( PlaneInfo ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getPlaneNo()==castOther.getPlaneNo()) || ( this.getPlaneNo()!=null && castOther.getPlaneNo()!=null && this.getPlaneNo().equals(castOther.getPlaneNo()) ) )
 && ( (this.getFlyDate()==castOther.getFlyDate()) || ( this.getFlyDate()!=null && castOther.getFlyDate()!=null && this.getFlyDate().equals(castOther.getFlyDate()) ) )
 && ( (this.getFlyLine()==castOther.getFlyLine()) || ( this.getFlyLine()!=null && castOther.getFlyLine()!=null && this.getFlyLine().equals(castOther.getFlyLine()) ) )
 && ( (this.getOriArea()==castOther.getOriArea()) || ( this.getOriArea()!=null && castOther.getOriArea()!=null && this.getOriArea().equals(castOther.getOriArea()) ) )
 && ( (this.getDestArea()==castOther.getDestArea()) || ( this.getDestArea()!=null && castOther.getDestArea()!=null && this.getDestArea().equals(castOther.getDestArea()) ) )
 && ( (this.getFlyTimePlan()==castOther.getFlyTimePlan()) || ( this.getFlyTimePlan()!=null && castOther.getFlyTimePlan()!=null && this.getFlyTimePlan().equals(castOther.getFlyTimePlan()) ) )
 && ( (this.getFlyTimeExpect()==castOther.getFlyTimeExpect()) || ( this.getFlyTimeExpect()!=null && castOther.getFlyTimeExpect()!=null && this.getFlyTimeExpect().equals(castOther.getFlyTimeExpect()) ) )
 && ( (this.getFlyTimeFact()==castOther.getFlyTimeFact()) || ( this.getFlyTimeFact()!=null && castOther.getFlyTimeFact()!=null && this.getFlyTimeFact().equals(castOther.getFlyTimeFact()) ) )
 && ( (this.getFlyState()==castOther.getFlyState()) || ( this.getFlyState()!=null && castOther.getFlyState()!=null && this.getFlyState().equals(castOther.getFlyState()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getPlaneNo() == null ? 0 : this.getPlaneNo().hashCode() );
         result = 37 * result + ( getFlyDate() == null ? 0 : this.getFlyDate().hashCode() );
         result = 37 * result + ( getFlyLine() == null ? 0 : this.getFlyLine().hashCode() );
         result = 37 * result + ( getOriArea() == null ? 0 : this.getOriArea().hashCode() );
         result = 37 * result + ( getDestArea() == null ? 0 : this.getDestArea().hashCode() );
         result = 37 * result + ( getFlyTimePlan() == null ? 0 : this.getFlyTimePlan().hashCode() );
         result = 37 * result + ( getFlyTimeExpect() == null ? 0 : this.getFlyTimeExpect().hashCode() );
         result = 37 * result + ( getFlyTimeFact() == null ? 0 : this.getFlyTimeFact().hashCode() );
         result = 37 * result + ( getFlyState() == null ? 0 : this.getFlyState().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         return result;
   }


public String getTdestArea() {
	return tdestArea;
}


public void setTdestArea(String tdestArea) {
	this.tdestArea = tdestArea;
}


public String getToriArea() {
	return toriArea;
}


public void setToriArea(String toriArea) {
	this.toriArea = toriArea;
}   





}
